package com.jieshen.utils;

import org.junit.Test;

public class convert {
    public static String toBrackets(String str) {
        str = str.replace(" ","");
        str = str.replace("\"","");
        str = str.replace("\n","");
        String s = str.replace("[", "{");
        return s.replace("]", "}");
    }

    @Test
    public void testToBrackets() {


        String str = "[[[[3,0,1,4,2],[5,6,3,2,1],[1,2,0,1,5],[4,1,0,1,7],[1,0,3,0,5]]]";


        System.out.println(toBrackets(str));
    }
}


